﻿#include "bslLabelAndIntEdit.h"
#include "ui_bslLabelAndIntEdit.h"




bslLabelAndIntEdit::bslLabelAndIntEdit(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::bslLabelAndIntEdit)
{
    ui->setupUi(this);


    pLabel          = new QLabel(this);
    pLineEditInt    = new QLineEdit(this);
    pLineEditInt->setFixedHeight(60);
    pLineEditInt->setMaximumWidth(300);

    pHBoxLayout     = new QHBoxLayout(this);


    pHBoxLayout->addWidget(pLabel,1);
    pHBoxLayout->addWidget(pLineEditInt,1);
    setLayout(pHBoxLayout);
}



bslLabelAndIntEdit::~bslLabelAndIntEdit()
{
    delete ui;
}



void bslLabelAndIntEdit::SetBacgroundColr(QColor Color)
{
    QPainter* pQPainter = new QPainter(this);
   pQPainter->fillRect(pLabel->rect(),Color);
    pQPainter->fillRect(pLineEditInt->rect(),Color);
}



void bslLabelAndIntEdit::paintEvent(QPaintEvent *event)
{


}


